package hw;

import java.text.SimpleDateFormat;
import java.util.Date;

public class Report {
	public static final SimpleDateFormat TIME_MILI_FORMAT = new SimpleDateFormat("HH:mm:ss.SSS");
	public static String whoAmI;
	public static void report(String mssg,Throwable e) {
		System.out.println("Sync App Error: " + mssg);
		System.out.println("More Details : ");
		e.printStackTrace();
	}

	public static void report(String string) {
		System.out.println();
		System.out.println(TIME_MILI_FORMAT.format(new Date(System.currentTimeMillis())) +" "+ string);
		System.out.println();
	}
	public static String format(long time) {
		return TIME_MILI_FORMAT.format(new Date(time));
	}
}
